//脚手架命令
const cmd = require("commander");
const { add, del, ls, init } = require("./commands");
cmd.version(require("../../package").version);
cmd
  .command("ls")
  .description("【脚手架】查看模板")
  .action(() => {
    ls();
  });
cmd
  .command("add")
  .description("【脚手架】添加模板")
  .action(() => {
    add();
  });
cmd
  .command("del")
  .description("【脚手架】删除模板")
  .action(() => {
    del();
  });
cmd
  .command("init [type] [demo]")
  .description("【脚手架】项目初始化")
  .action((type, demo) => {
    init(type, demo);
  });
